package org.hdax.dm.client;

import org.hdax.dm.entity.scheduler_seat.DmSchedulerSeat;
import org.hdax.dm.entity.scheduler_seat_price.DmSchedulerSeatPrice;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "dm-scheduler-provider")
public interface DmSchedulerSeatClient {

    @PostMapping(path = "/findByDmSchedulerSeatCount")
    Long findByDmSchedulerSeatCount(@RequestBody DmSchedulerSeat dmSchedulerSeat);

    @PostMapping(path = "/getSchedulerSeatByOrder")
    DmSchedulerSeat getSchedulerSeatByOrder(@RequestParam("scheduleId") Integer scheduleId,
                                            @RequestParam("x") Integer x,
                                            @RequestParam("y") Integer y);

    @PostMapping(path = "/modifySchedulerSeat")
    void modifySchedulerSeat(@RequestBody DmSchedulerSeat schedulerSeat);
}
